﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProyectoEscuela
{
    public partial class uOL01 : UserControl
    {

        Agente mAgente;

        public uOL01()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        public void setAgente(Agente agente){
            mAgente = agente;

        }

        private void chkFamiliarEnfermo_CheckedChanged(object sender, EventArgs e)
        {
            if (chkFamiliarEnfermo.Checked)
            {
                dgFamiliares.DataSource = mAgente.getMisFamiliares();
            }
        }
    }
}




